﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace Windows8Accelerator.Core.Xaml.Controls.Charts
{
    public class DataPoint<TX, TY> : DependencyObject
    {
        public TX X
        {
            get { return (TX)GetValue(XProperty); }
            set { SetValue(XProperty, value); }
        }
        public static readonly DependencyProperty XProperty =
            DependencyProperty.Register("X", typeof(TX), typeof(DataPoint<TX, TY>), new PropertyMetadata(default(TX)));

        public TY Y
        {
            get { return (TY)GetValue(YProperty); }
            set { SetValue(YProperty, value); }
        }
        public static readonly DependencyProperty YProperty =
            DependencyProperty.Register("Y", typeof(TY), typeof(DataPoint<TX, TY>), new PropertyMetadata(default(TY)));



        public string XLabel
        {
            get { return (string)GetValue(XLabelProperty); }
            set { SetValue(XLabelProperty, value); }
        }
        public static readonly DependencyProperty XLabelProperty =
            DependencyProperty.Register("XLabel", typeof(string), typeof(DataPoint<TX,TY>), new PropertyMetadata(null));



        public string YLabel
        {
            get { return (string)GetValue(YLabelProperty); }
            set { SetValue(YLabelProperty, value); }
        }
        public static readonly DependencyProperty YLabelProperty =
            DependencyProperty.Register("YLabel", typeof(string), typeof(DataPoint<TX,TY>), new PropertyMetadata(null));

        
        
    }
}
